// import posts from './posts/posts'
// import album from './album/album'
import md from "./blog.md"
console.log(md)
const render = () => {
    const hash = window.location.hash || '#posts'
  
    const mainElement = document.querySelector('.main')
  
    mainElement.innerHTML = ''
  
    if (hash === '#posts') {
      // mainElement.appendChild(posts())
      import(/* webpackChunkName: 'posts' */'./posts/posts').then(({ default: posts }) => {
        mainElement.appendChild(posts())
      })
    } else if (hash === '#album') {
      // mainElement.appendChild(album())
      import(/* webpackChunkName:'utils' */'./album/album').then(({ default: album }) => {
        mainElement.appendChild(album())
      })
    }
  }
  
  render()
  
  window.addEventListener('hashchange', render)
  